package com.ehome.poct.core.api.feign;

import com.ehome.poct.core.api.dto.order.UnificationPayReqDTO;
import com.ehome.poct.core.api.dto.order.UnificationShareAccountReqDTO;
import com.ehome.poct.core.api.vo.order.UnificationPayVO;
import com.ehome.poct.core.api.vo.order.UnificationShareAccountVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * @auther: kuiba.peng
 * @date: 2022/11/21 20:00
 * @description: 业务支付统一入口
 */
public interface TestOrderUnificationPayClient {


    /**
     * 保存分账信息
     *
     * @param reqDTO
     * @return
     */
    @PostMapping("/saveShareAccount")
    UnificationShareAccountVO saveShareAccount(@RequestBody @Valid UnificationShareAccountReqDTO reqDTO);


    /**
     * 唤起支付
     *
     * @param payReqDTO
     * @return
     */
    @PostMapping("/pay")
    UnificationPayVO pay(@RequestBody @Valid UnificationPayReqDTO payReqDTO);
}
